package models

import "gorm.io/gorm"

type Msg struct {
	Code int
	Msg  string
	Data any
}
type Atcle struct {
	Title         string `gorm:"type:varchar(100)"`                                                            //标题
	Image         string `gorm:"type:text"`                                                                    //封面
	Classify      string `gorm:"type:enum('会议','党建生活','老有所养','公司简介','新人须知','公司公告','公司简介2','心声动态','公告','文版通')"` //分类
	Abstract      string `gorm:"type:text"`                                                                    //摘要
	Data          string `gorm:"type:text"`                                                                    //主体
	User          string `gorm:"type:varchar(20)"`                                                             //上传用户
	From          string `gorm:"type:text"`                                                                    //来源
	ReadCount     int    `gorm:"type:int(11)"`                                                                 //阅读数量
	LikeCount     int    `gorm:"type:int(11)"`                                                                 //点赞数量
	CommentCount  int    `gorm:"type:int(11)"`                                                                 //评论数量
	Issus         string `gorm:"type:enum('是','否')"`                                                           //发布状态
	Top           string `gorm:"type:enum('是','否')"`                                                           //置顶状态
	CommentSwitch string `gorm:"type:enum('是','否')"`                                                           //评论开关
	Excellent     string `gorm:"type:enum('是','否')"`                                                           //加精

	gorm.Model `gorm:"gorm_._model"`
}
